import { defHttp } from '/@/utils/http/axios';

enum Api {
  PageApi = '/monitor/session/page',
  DeleteApi = '/monitor/session/delete',
}

interface SessionVo {
  token: string
}

/**
 * @description: 获取会话列表数据
 */
export const getSessionPageApi = () => {
  return defHttp.post({ url: Api.PageApi });
};

/**
 * @description: 删除会话
 */
export const delSessionApi = (token: string) => {
  const data: SessionVo = {
    token: token
  };
  return defHttp.post({ url: Api.DeleteApi, data });
};
